<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Home</title>
    <script>
      var sseSource = new EventSource("http://localhost:8080/sse/userConnect");
      <!-- 添加一个信息回调 -->
      sseSource.onmessage = function(event){
        console.log("test=>",event)
        documentVo.getElementById("result").innerText = event.data+'%';
        documentVo.getElementById("my-progress").value = event.data;
      }
      // 使用vue交互事件，可以添加一些SSE的回调
      // sseSource.dispatchEvent();
      // sseSource.close();
    </script>
</head>
<body>
<div id="result"></div>
下载进度条：<progress style="width: 300px" id="my-progress" value="0" max="100"></progress>
</body>
</html>
